package com.pig4cloud.pig.module.service.product.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.module.api.entity.product.ProductRule;
import com.pig4cloud.pig.module.mapper.product.ProductRuleMapper;
import com.pig4cloud.pig.module.service.product.IProductRuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 商品规则值(规格)Service业务层处理
 *
 * @author ruoyi
 * @date 2021-08-13
 */
@Service
public class ProductRuleServiceImpl extends ServiceImpl<ProductRuleMapper, ProductRule> implements IProductRuleService {

	@Resource
	private ProductRuleMapper ruleMapper;

	@Override
	public List<ProductRule> getRuleListByCateChildId(Integer cate_child_id) {
		return ruleMapper.getRuleListByCateChildId(cate_child_id);
	}
}
